<template>
    <el-container style="height: 100%">
        <el-aside width="auto">
            <CommonAside></CommonAside>
        </el-aside>
        <el-container>
            <el-header>
                <CommonHeader></CommonHeader>
            </el-header>
            <common-tag></common-tag>
            <el-main>
                <router-view></router-view>
            </el-main>
        </el-container>
    </el-container>
</template>

<script>
import CommonAside from '@/components/home/aside/aside'
import CommonHeader from '@/components/home/CommonHeader'
import CommonTag from '@/components/home/CommonTag'
import cache from '@/plugins/cache'
import { getInfo } from '@/api/login'
export default {
    components: {
        CommonAside,
        CommonHeader,
        CommonTag
    },
    beforeCreate() {
        this.$store.dispatch('GetInfo')
        /*getInfo().then((res) => {
            cache.session.setJSON('permissions', res.data.permissions)
            cache.session.setJSON('avatar', process.env.VUE_APP_BASE_API + res.data.user.avatar)
        })*/
    }
}
</script>
<style lang="less" scoped>
.el-header {
    background-color: pink;
}

.el-main {
    padding-top: 0;
}
</style>
